package com.yohann.eduservice.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Yohann
 * @since 2020/8/8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OneSubject {
    private String id;
    private String title;
    private List<TwoSubject> twoSubjects = new ArrayList<>();

    public OneSubject(String id, String title) {
        this.id = id;
        this.title = title;
    }
}